package cn.test;

public class Student extends Profession{
	public Student(String Sname,int Sage,String Scontent) {
		super(Sname,Sage,Scontent);
//		super();
	}
	public void study() {
		System.out.print("一脸懵逼的学着");
	}
	public static void main(String[] args) {
		Student student=new Student("张三",20,"Java入门课程");
		System.out.print("年龄为"+student.getAge()+"的"+student.getName()+"正在");
		student.study();
		System.out.println(student.getContent());
		
		student.setAge(16);
		System.out.print("年龄为"+student.getAge()+"的"+student.getName()+"正在");
		student.getEat();
				}
	
}
